﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.ConfigurationContext;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.ConfigurationContext
{
    /// <summary>
    /// 硬件仓储接口
    /// </summary>
    public interface IHardwareRepository : IAggRootRepository<Hardware>
    {
        #region # 分页获取硬件列表 —— ICollection<Hardware> FindByPage(string keywords...
        /// <summary>
        /// 分页获取硬件列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="hardwareType">硬件类型</param>
        /// <param name="terminalId">终端Id</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>硬件列表</returns>
        ICollection<Hardware> FindByPage(string keywords, HardwareType? hardwareType, Guid? terminalId, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
